import { Routes } from '@angular/router';

import { MarketDataComponent } from './market-data.component';
import { TotalTableComponent } from './total-table/total-table.component';
import { NewTableComponent } from './new-table/new-table.component';
import { ChainDetailComponent } from './chain-detail/chain-detail.component';

export const marketDataRoutes: Routes = [
	{
		path: 'market',
		component: MarketDataComponent,
		children: [{
			path: '',
			redirectTo: 'total',
			pathMatch: 'full'
		},
		{
			path: 'total',
			component: TotalTableComponent
		},
		{
			path: 'newmoney',
			component: NewTableComponent
		},
		{
			path: 'chain/:name',
			component: ChainDetailComponent
		},
		{
			path: '**',
			component: TotalTableComponent
		}]
	}
];